package com.yjps.system.model;

import com.yjps.common.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by 麒全 on 2015/8/18.
 */
@Entity
@Table(name = "t_news")
public class News extends BaseModel {
    @Column(name = "news_content",nullable = false)
    private String content;
    @Column(name = "news_createtime",nullable = false)
    private String createtime;
    @Column(name = "news_title",nullable = false)
    private String title;
    @Column(name = "news_state")
    private boolean state;
    @Column(name = "user_id",nullable = false)
    private int userId;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }
}
